class C:
    def __init__(cls,*args):
        if not args:
            print('没有传入参数')
        else:
            print('传入了%d个参数，分别是：%s'%(len(args),args))
class Word(str):
    def __eq__(self, other):
            if ' 'in self :
                self=self.split(' ')[0]
            if ' ' in other:
                other=other.split(' ')[0]
            if len(self)==len(other):
                return True
            else:
                return False





a=Word('aaaa eeee')
b=Word('aaaa bbb')
print(a==b)
